﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Master/Master.Master"
    Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<%@ Register TagName="EmployeeInput" TagPrefix="Control" Src="~/Views/Master/EmployeeInput.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    <h2>
        AddEmployee</h2>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="../../Scripts/Master/EmployeeList.js" type="text/javascript"></script>
    <div class="app_tabpage">
        <div class="tab_table" style="padding-top: 10px;">
            <div style="padding-left: 10px;">
                <table class="datatable" width="70%" cellpadding="0" cellspacing="0" style="margin-bottom: 5px;">
                    <tr>
                        <th width="15%">
                            员工帐号
                        </th>
                        <td>
                            <input type="text" id="employee_code" style="width: 120px;" searchmode />
                        </td>
                        <th width="15%">
                            员工名称
                        </th>
                        <td>
                            <input type="text" id="employee_name" style="width: 120px;" searchmode />
                        </td>
                    </tr>
                </table>
            </div>
            <div style="float: right; margin: 5px 10px 5px;">
                <img src="../../Content/images/button/btn_search.png" id="btnSearch" style="cursor: pointer" />
                <img src="../../Content/images/button/btn_search_clear.png" id="btnClear" style="cursor: pointer" />
                <img src="../../Content/images/button/btn_new.png" id="btnAdd" style="cursor: pointer" />
                <img src="../../Content/images/button/btn_delete.png" id="btnDelete" style="cursor: pointer" />
            </div>
            <div id="employeeList" style="padding: 10px; width:1010px;">
            </div>
        </div>
    </div>
    <Control:EmployeeInput ID="EmployeeInputCtl" runat="server" />
    <script type="text/javascript">
        var employeeListIns = new EmployeeList();

        employeeListIns.employeeInputIns = <%= EmployeeInputCtl.GetJSInstance() %>;
            
        $j(function () {
            employeeListIns.init();
        });
    </script>
</asp:Content>
